package cvi.com.reader.tool;

import android.app.Activity;
import android.content.Context;
import android.widget.Toast;

import cvi.com.reader.ReaderApplication;

/**
 * Created by WP on 2020/7/17.
 */

public class ToastUtils {


    public static void showShort(Context context, String string) {
        Toast.makeText(context, string, Toast.LENGTH_SHORT).show();
    }

    public static void showShort(Context context, int resId) {
        Toast.makeText(context, resId, Toast.LENGTH_SHORT).show();
    }

    public static void showLong(Context context, String string) {
        Toast.makeText(context, string, Toast.LENGTH_LONG).show();
    }

    public static void showLong(Context context, int resId) {
        Toast.makeText(context, resId, Toast.LENGTH_LONG).show();
    }

}
